public async Task <JsonResult> Edit(CustomerEditDTO editDTO) { try { if (!ModelState.IsValid) { throw new HttpException((int)HttpStatusCode.BadRequest, ConstantHelper.KEY_IN_REQUIRED_FIELD); } Response.StatusCode = 200; return(Json(await handler.Edit(editDTO), JsonRequestBehavior.AllowGet)); } catch (HttpException) { return(Json(ConstantHelper.ERROR, JsonRequestBehavior.AllowGet)); } }