public async Task <IHttpActionResult> Get(int ID) { return(Ok(await UsersViewModel.MapFromAsync(db.Users.Where(x => x.ID.Equals(ID)).ToList()))); }
public async Task <IHttpActionResult> Get() { return(Ok(await UsersViewModel.MapFromAsync(db.Users.Where(x => x.UserName.Contains("")).OrderBy(o => o.FirstName).ToList()))); }