public IActionResult Get()
 {
     try
     {
         var userList = _UserDomain.Get();
         return(Ok(userList));
     }
     catch (Exception ex)
     {
         //Log Exception
         return(StatusCode(500));
     }
 }
示例#2
0
 public Task <List <User> > GetAll()
 {
     return(_domain.Get());
 }