public ActionResult Update(InstructionViewModel model) { try { _service.Update(model.ToBll()); } catch (ServiceException ex) { return(Json(new { answer = ex.Message, success = false })); } return(Json(new { answer = "Instruction updated successfully.", success = true })); }