public object UpdateCallResultFollow(CreateOrEditCallResultFollowDto input, string UserId) { try { if (input.ID == Guid.Empty.ToString() || string.IsNullOrEmpty(input.ID)) { input.ID = Guid.NewGuid().ToString(); } DynamicParameters param = new DynamicParameters(); param.Add("@ID", input.ID); param.Add("@MODIFIED_USER_ID", UserId); param.Add("@NAME", input.NAME); param.Add("@CALL_CATEGORY_ID", input.CALL_CATEGORY_ID); param.Add("@NEXT_RESULT_C", input.NEXT_RESULT_C); param.Add("@NOTES", input.NOTES); param.Add("@STATUS", input.STATUS); param.Add("@EVENT_DATE_C", input.EVENT_DATE_C); DapperORM.ExecuteWithoutReturn("spCALL_RESULT_Update", param); return(new { data = input.ID }); } catch (Exception ex) { return(new { data = new { Message = ex.Message, ErrorCode = 600 } }); } }
public IActionResult UpdateCallResultFollow(CreateOrEditCallResultFollowDto input) { return(Ok(_callCategoryRepository.UpdateCallResultFollow(input, User.FindFirst(ClaimTypes.NameIdentifier).Value))); }