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); }
public ActionResult ProductionBudgeted(ProductionBudget production) { return(View()); }