Пример #1
0
 public ActionResult Create(InstructionViewModel model)
 {
     try
     {
         _service.Create(model.ToBll());
     }
     catch (ServiceException ex)
     {
         return(Json(new { answer = ex.Message, success = false }));
     }
     return(Json(new { answer = "Instruction added successfully.", success = true }));
 }