Example #1
0
        public int Add(ProductionBudgetDto dto)
        {
            var entity = new ProductionBudget();

            try
            {
                Mapper.Map(dto, entity);
                _repository.Repository <ProductionBudget>().Insert(entity);
                _repository.Save();
            }
            catch (DbEntityValidationException valEx)
            {
                HandleValidationException(valEx);
            }
            catch (Exception ex)
            {
                LogException(ex);
                throw;
            }
            return(entity.ID);
        }
Example #2
0
 public ActionResult ProductionBudgeted(ProductionBudget production)
 {
     return(View());
 }