/// <summary> /// 新增报备记录 /// </summary> /// <param name="Param"></param> /// <returns></returns> public string EditBanquet(RequestCookBanquet Param) { CookBanquet banquet = Param.MapToEntity <CookBanquet>(); banquet.Ingredients.Split(",").ToList().ForEach(x => { var Name = x.Split("_")[0]; Delete <CookFood>(t => t.FoodName.Equals(Name), "IsUse", true); }); return(Insert(banquet) ? ServiceMessage.INSERTSUCCESS : ServiceMessage.INSERTFAIL); }
public ObjectResultEx EditBanquet(RequestCookBanquet Param) { return(ObjectResultEx.Instance(CookWebService.EditBanquet(Param), 1, RetrunMessge.SUCCESS, HttpCode.Success)); }