public ObjectResult GetUsers() { var users = _userContext.GetUsers(); return(new ObjectResult(users)); }
// GET: api/User public IHttpActionResult Get() { var users = userModel.GetUsers().Select(user => AutoMapper.Mapper.Map <User>(user)).ToList(); return(Ok(users)); }