public dynamic Insert(Machine model) { try { model = _MachineService.CreateObject(model); } catch (Exception ex) { LOG.Error("Insert Failed", ex); model.Errors.Add("Insert Failed", "Error : " + ex); } return(Json(new { model.Errors })); }