Пример #1
0
 public bool AddOrEditAt(Depart model)
 {
     if (model == null)
     {
         return(false);
     }
     return(model.ID == null?iRepos.UpdateAt(model) : iRepos.InsertAt(model));
 }
Пример #2
0
        public static Depart CreateInstance(Guid departId, string name, string manager, string remarks = null)
        {
            var inf = new Depart
            {
                Name    = name,
                Manager = manager,
                Remarks = string.IsNullOrEmpty(remarks) ? "暂无" : remarks
            };

            return(inf);
        }