예제 #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;
        }