public JsonResult SaveAnswerQuestion(String AnswerQuestion, String fintransaccion, String Idtask, String idstatus, String CodigoGemini)
 {
     try
     {
         var model = JSonConvertUtil.Deserialize <List <MyTaskViewAnswer> >(AnswerQuestion);
         if (model == null)
         {
             return(null);
         }
         _taskCampaignBusiness.CrearAnswerQuestion(model, ApplicationUserCurrent.AccountId, Guid.Parse(ApplicationUserCurrent.UserId), ApplicationUserCurrent.ProfileId, fintransaccion, Idtask, Guid.Parse(idstatus), CodigoGemini);
         return(Json(model));
     }
     catch (Exception ex)
     {
         _logger.LogError(new EventId(0, "Error Index"), ex.Message);
         return(null);
     }
 }
Exemple #2
0
        public JsonResult SaveAnswerQuestion(String AnswerQuestion, String fintransaccion, String Idtask, String idstatus, String CodigoGemini, String task, String comment)
        {
            try
            {
                var model = JSonConvertUtil.Deserialize <List <MyTaskViewAnswer> >(AnswerQuestion);

                //var varmodel=model_2.ServiceCollection.First().ServiceDetailCollection.Where(x=>x.QuestionCollection.)
                _SaveAnswerQuestionComplete(task, Idtask);

                if (model == null)
                {
                    return(null);
                }
                _taskCampaignBusiness.CrearAnswerQuestion(model, ApplicationUserCurrent.AccountId, Guid.Parse(ApplicationUserCurrent.UserId), ApplicationUserCurrent.ProfileId, fintransaccion, Idtask, Guid.Parse(idstatus), CodigoGemini, comment);

                return(Json(model));
            }
            catch (Exception ex)
            {
                _logger.LogError(new EventId(0, "Error Index"), ex.Message);
                return(null);
            }
        }