Beispiel #1
0
 public ActionResult AddBusiness(AddBusinessInput ti)
 {
     if (this.CreateService <IBusinessService>().Add(ti).Id != "")
     {
         return(this.SuccessMsg());
     }
     return(this.SuccessMsg("失败!"));
 }
Beispiel #2
0
        public MALU_Business Add(AddBusinessInput input)
        {
            MALU_Business entity = this.CreateEntity <MALU_Business>();

            entity.AppointmentNum = input.AppointmentNum;
            entity.IsWeekEnd      = (IsWeekEnd)input.IsWeekEnd;
            entity.PeriodTimeID   = input.PeriodTimeID;
            entity.PlaceId        = input.PlaceId;
            entity.TransactionID  = input.TransactionID;
            return(this.DbContext.Insert(entity));
        }