public override object Insert(Sys_Organize model) { //model.Id = Guid.NewGuid().ToString(); model.Layer = !model.ParentId.HasValue ? 0 : _organizeRepository.Get(model.ParentId.Value).Layer += 1; model.DeleteMark = false; model.CreateUser = OperatorProvider.Instance.Current.Account; model.CreateTime = DateTime.Now; model.ModifyUser = model.CreateUser; model.ModifyTime = model.CreateTime; return(_organizeRepository.Insert(model)); }
public OrganizeEntity GetForm(string keyValue) { return(service.Get(m => m.F_Id == keyValue)); }
public List <Organize> GetList() { return(_organizeRepository.Get().ToList()); }