//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())); }
//GetById public static Kinds1 GetKindById(int kind) { return(KindsConvertor.ConvertToDto(KindsDL.GetKindById(kind))); }