Пример #1
0
 public void Delete(PayDayModel model)
 {
     if (model != null)
     {
         PayDayService.DeletePayDay(model.RecordId);
     }
 }
Пример #2
0
        public void AddPayDay(PayDayModel model)
        {
            PayDaySaveFacade facade = new PayDaySaveFacade();
            IPayDay          payDay = facade.Apply(model);

            PayDayService.AddPayDay(payDay);
        }
Пример #3
0
        private PayDayModel CreateModel(IPayDay payday)
        {
            PayDayModel model = new PayDayModel();

            model.CopyFrom(payday);
            return(model);
        }
Пример #4
0
        public IPayDay Apply(PayDayModel model)
        {
            IPayDay payDay = new PayDay
            {
                Date   = model.Date,
                Amount = model.Amount,
            };

            return(payDay);
        }
Пример #5
0
 public IPayDay Apply(PayDayModel model, IPayDay payDay)
 {
     payDay.Date   = model.Date;
     payDay.Amount = model.Amount;
     return(payDay);
 }