public async Task <bool> UpdateSimpleAsync(RevokeSimpleUpdate model, int updateBy, int profileId)
        {
            using (var con = GetConnection())
            {
                await con.ExecuteAsync("sp_RevokeDebt_UpdateSimple",
                                       new { profileId, updateBy, model.Status, model.AssigneeId, model.DistrictId, model.ProvinceId }
                                       , commandType : CommandType.StoredProcedure);

                return(true);
            }
        }
Esempio n. 2
0
 public async Task <bool> UpdateSimpleAsync(RevokeSimpleUpdate model, int profileId)
 {
     if (model == null)
     {
         return(ToResponse(false, Errors.invalid_data));
     }
     if (model.AssigneeId == 0)
     {
         return(ToResponse(false, "Vui lòng chọn người xử lý"));
     }
     return(await _rpRevoke.UpdateSimpleAsync(model, _process.User.Id, profileId));
 }
Esempio n. 3
0
        public async Task <JsonResult> Update(int profileId, RevokeSimpleUpdate model)
        {
            await _bizRevokeDebt.UpdateSimpleAsync(model, GlobalData.User.IDUser, profileId);

            return(ToJsonResponse(true));
        }
 public async Task <bool> UpdateSimpleAsync(RevokeSimpleUpdate model, int updateBy, int profileId)
 {
     return(await _rpRevokeDebt.UpdateSimpleAsync(model, updateBy, profileId));
 }
Esempio n. 5
0
        public async Task <IActionResult> Update(int profileId, [FromBody] RevokeSimpleUpdate model)
        {
            var result = await _bizRevoke.UpdateSimpleAsync(model, profileId);

            return(ToResponse(result));
        }