Ejemplo n.º 1
0
 public int Update(UpdateBusinessInput input)
 {
     if (this.DbContext.Update <MALU_Business>(a => a.Id == input.Id, a => new MALU_Business()
     {
         UpdateTime = DateTime.Now,
         AppointmentNum = input.AppointmentNum,
         IsWeekEnd = (IsWeekEnd)input.IsWeekEnd,
         PeriodTimeID = input.PeriodTimeID,
         PlaceId = input.PlaceId,
         TransactionID = input.TransactionID
     }) > 0)
     {
         return(1);
     }
     return(0);
 }
Ejemplo n.º 2
0
 public ActionResult Update(UpdateBusinessInput input)
 {
     this.CreateService <IBusinessService>().Update(input);
     return(this.UpdateSuccessMsg());
 }