示例#1
0
文件: MyConvert.cs 项目: Karol/REC
 public Type ToType(ViewType typeV)
 {
     return new Type()
     {
         Id = typeV.IdV,
         Name = typeV.NameV
     };
 }
示例#2
0
文件: Validation.cs 项目: adte/REC
        public bool ValType(ViewType typeV)
        {
            bool exist = false;

            foreach(var item in db.Types)
            {
                if (typeV.NameV.ToLower() == item.Name.ToLower())
                {
                    exist = true;
                }
            }
                return exist;
        }