public async Task <dynamic> Execute(ContextDto context) { try { if (MaTrangThai == "3") { NgayKetThuc = DateTime.Now; } dynamic result = new System.Dynamic.ExpandoObject(); var repo = new IssueRepository(context); await repo.UpdatePartial(this, nameof(KhachHangId), nameof(NguoiLienHe), nameof(DienThoai), nameof(DiDong), nameof(Email), nameof(TieuDe), nameof(MoTa), nameof(LoaiIssue), nameof(NgayDeNghi), nameof(NgayKetThuc), nameof(NguoiXuLy), nameof(CachXuLy), nameof(HuongXuLy), nameof(DanhGiaId), nameof(MaTrangThai) ); result.data = this; InsertLuocSuAction ls = new InsertLuocSuAction(); ls.InsertLuocSu(context, "Issue", IssueId, "Update", NguoiTao); return(returnActionResult(this, null)); } catch (FormatException ex) { return(returnActionError(HttpStatusCode.BadRequest, ex.Message)); } catch (Exception ex) { return(returnActionError(HttpStatusCode.InternalServerError, ex.Message)); } }