コード例 #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);
 }