Пример #1
0
 //GetAll
 public static List <Kinds1> GetAllKinds()
 {
     return(KindsConvertor.ConvertToListDto(KindsDL.GetAllKinds()));
 }
Пример #2
0
        //GetByName
        public static Kinds1 GetKindByName(string kind)
        {
            List <Kinds> lst = new List <Kinds>(KindsDL.GetAllKinds());

            return(KindsConvertor.ConvertToDto(lst.Where(k => k.Kind.Equals(kind)).FirstOrDefault()));
        }