public JsonResult Save(string task) { try { var model = JSonConvertUtil.Deserialize <MyTaskViewModel>(task); if (model == null) { return(null); } if (ApplicationUserCurrent.UserId == null) { ApplicationUserCurrent.UserId = Convert.ToString(Global.UserID); ApplicationUserCurrent.AccountId = Global.AccountId; ApplicationUserCurrent.ProfileId = Global.ProfileId; ApplicationUserCurrent.PersonId = Global.PersonId; } _taskCampaignBusiness.SaveAnsweredPoll(model, ApplicationUserCurrent.AccountId, ApplicationUserCurrent.ProfileId, Guid.Parse(ApplicationUserCurrent.UserId), model.IdStatusTask, ""); return(Json("OK")); } catch (Exception e) { _logger.LogError(new EventId(0, "Error Index"), e.Message); return(null); } }