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