Пример #1
0
        //Batches
        public JsonNetResult InsertBatche(Data.Models.Batch batche)
        {
            JsonResponse response = null;

            try
            {
                response = new JsonResponse();
                var Id = this._institutionService.Insert(batche);
                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));
        }
Пример #2
0
 //Batches
 public int Insert(Data.Models.Batch batche)
 {
     this._batchRepository.Insert(batche);
     return(batche.Id);
 }