Beispiel #1
0
 /// <summary>
 /// 修改餐饮店
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public Task <int> ModifyRfCateringShop(RfCateringShopEntity model)
 {
     return(_rfCateringShopRepository.UpdateAsync(model));
 }
 public async Task <IActionResult> AddRfCateringShop([FromBody] RfCateringShopEntity model)
 {
     return(OkResult(await _server.AddRfCateringShop(model)));
 }
Beispiel #3
0
 /// <summary>
 /// 添加餐饮店
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public Task <int> AddRfCateringShop(RfCateringShopEntity model)
 {
     model.CreateTime = DateTime.Now.D2LSecond();
     model.Status     = (int)StatusEnum.可用;
     return(_rfCateringShopRepository.InsertAsync(model));
 }