public ActionResult <IEnumerable <Users> > GetUser() { var u = _user.GetUser(); if (u != null) { return(Ok(u)); } else { return(NotFound()); } }
public IActionResult UserProfile() { ApplicationUser user = _userDb.GetUser(User.Identity.GetUserId()); return(View(user)); }
public bool Get(string name, string pass) { return(_val.GetUser(name, pass)); }