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

            PayDayService.AddPayDay(payDay);
        }
Exemple #3
0
        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);
 }