Ejemplo n.º 1
0
 public async Task <List <UserCreateModel> > GetAllUsers()
 {
     try
     {
         return(await Task.Run(() => UserOperations.GetAllUsers()));
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
        public async Task <List <UserCreateModel> > GetAllUsers(CompanyModel model)
        {
            try
            {
                List <tblUserProfile> data = await Task.Run(() => UserOperations.GetAllUsers(Convert.ToInt64(model.id), model.companyType));

                return(data.Select(a => a.ConvertToUser()).ToList());
            }
            catch (Exception)
            {
                throw;
            }
        }