Exemple #1
0
        public async Task <object> GetBy(vPNR parameters)
        {
            var check = await Uow.Repository <vPNR>().FindByAsync(t => t.UserId == parameters.UserId);

            return(check);

            /*  if(check != null)
             * {
             *     return "hello";
             * }
             * else
             * {
             *     return "invalid";
             * }*/
        }
Exemple #2
0
 public Task <object> GetAsync(vPNR parameters)
 {
     throw new NotImplementedException();
 }
 public async Task <object> GetAsync(vPNR parameters)
 {
     //throw new NotImplementedException();
     return(await Uow.Repository <vPNR>().AllAsync());
 }