using ARC.GMP.Types; using ARC.GMP.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Web; using System.Web.Mvc; using System.Web.Script.Serialization; namespace ARC.GMP.Controllers { public class LoggerController : BaseController { [HttpPost] [Route("logger/logerrors")] public async Task LogErrors(ErrorInfo errorInfo) { string url = BaseURL + "api/logerror"; var requestData = new JavaScriptSerializer().Serialize(errorInfo); string response = await InvokeWebService.PostWebClientRequestAsync(url, Token, ClientId, requestData); return HandleTrivialHttpRequests(response); } } }