public int Update(UpdatePlaceInfoInput input) { if (this.DbContext.Update <PlaceInfo>(a => a.Id == input.Id, a => new PlaceInfo() { Address = input.Address, Code = input.Code, Describe = input.Describe, PlaceName = input.PlaceName, UpdateTime = DateTime.Now }) > 0) { return(1); } return(0); }
public ActionResult Update(UpdatePlaceInfoInput input) { this.CreateService <IPlaceInfoService>().Update(input); return(this.UpdateSuccessMsg()); }