Exemplo n.º 1
0
        public static ServiceTypeItem GetByCode(entitiesEvolveCentral ctx, string code)
        {
            var item = new ServiceTypeItem();

            item = (from i in ctx.ServiceTypeItems where i.Code == code orderby i.Name ascending select i).FirstOrDefault();
            return(item);
        }
Exemplo n.º 2
0
        public static ServiceTypeItem Get(entitiesEvolveCentral ctx, int id)
        {
            var item = new ServiceTypeItem();

            item = (from i in ctx.ServiceTypeItems where i.Id == id orderby i.Name ascending select i).FirstOrDefault();
            return(item);
        }