Esempio n. 1
0
 public JsonResult CreatePhone(Phone phone)
 {
     try
     {
         _phoneService.CreatePhone(phone);
         return(Json(new { Result = "OK", Record = phone }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }