/// <summary> /// 审核厨师信息 /// </summary> /// <param name="Param"></param> /// <returns></returns> public string AuditCookInfo(RequestAudit Param) { CookInfo info = Kily.Set <CookInfo>().Where(t => t.Id == Param.TableId).FirstOrDefault(); info.AuditType = Param.AuditType; UpdateField(info, "AuditType"); SystemAudit audit = Param.MapToEntity <SystemAudit>(); return(Insert(audit) ? ServiceMessage.INSERTSUCCESS : ServiceMessage.INSERTFAIL); }
/// <summary> /// 编辑厨师信息 /// </summary> /// <param name="Param"></param> /// <returns></returns> public string EditCookInfo(RequestCookInfo Param) { CookInfo info = Param.MapToEntity <CookInfo>(); if (Param.Id != Guid.Empty) { return(Update(info, Param) ? ServiceMessage.UPDATESUCCESS : ServiceMessage.UPDATEFAIL); } else { return(Insert(info) ? ServiceMessage.INSERTSUCCESS : ServiceMessage.INSERTFAIL); } }