public JsonResult OpenSurvey(int roomId, int recordId) { try { Guid wNewRandomGuid = Guid.NewGuid(); //ChatSurveyBC.InsertChatSurvey(roomId, wNewRandomGuid); string NewRandom = wNewRandomGuid.ToString().Replace("-", string.Empty).Substring(0, 13); EpironChatBC.ChatRoom_UpdateSurvey(roomId, NewRandom); return(Json(new { Result = "OK", NewRandomGuid = NewRandom })); } catch (Exception ex) { Helper.Log(ex.Message); return(Json(new { Result = "ERROR", Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(ex) })); } }