public void Delete(PayDayModel model) { if (model != null) { PayDayService.DeletePayDay(model.RecordId); } }
public void AddPayDay(PayDayModel model) { PayDaySaveFacade facade = new PayDaySaveFacade(); IPayDay payDay = facade.Apply(model); PayDayService.AddPayDay(payDay); }
private PayDayModel CreateModel(IPayDay payday) { PayDayModel model = new PayDayModel(); model.CopyFrom(payday); return(model); }
public IPayDay Apply(PayDayModel model) { IPayDay payDay = new PayDay { Date = model.Date, Amount = model.Amount, }; return(payDay); }
public IPayDay Apply(PayDayModel model, IPayDay payDay) { payDay.Date = model.Date; payDay.Amount = model.Amount; return(payDay); }