Exemplo n.º 1
0
        public JsonNetResult InsertDivision(Data.Models.Division division)
        {
            JsonResponse response = null;

            try
            {
                response = new JsonResponse();
                var Id = this._infraService.Insert(division);
                response.Status = ResponseStatus.Success;
            }
            catch (Exception ex)
            {
                response.Status  = ResponseStatus.Error;
                response.Message = ex.Message + ex.InnerException ?? ex.InnerException.Message;
                LogException(ex);
            }
            return(JsonNet(response, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 2
0
 public int Insert(Data.Models.Division division)
 {
     this._divisonRepository.Insert(division);
     return(division.Id);
 }