public void CreateUnit(UnitView unit) { UnitModel unitModel = new UnitModel { Code = unit.Code, Description = unit.Description }; _persistence.CreateUnit(unitModel); }
public void UpdateUnit(UnitView unit) { UnitModel unitToUpdate = _persistence.GetUnit(unit.Code); _persistence.UpdateUnit(unit.Description, unitToUpdate); }
public void DeleteUnit(UnitView unit) { _persistence.DeleteUnit(unit.Code); }