예제 #1
0
        public ActionResult <IEnumerable <Users> > GetUser()
        {
            var u = _user.GetUser();

            if (u != null)
            {
                return(Ok(u));
            }
            else
            {
                return(NotFound());
            }
        }
예제 #2
0
        public IActionResult UserProfile()
        {
            ApplicationUser user = _userDb.GetUser(User.Identity.GetUserId());

            return(View(user));
        }
예제 #3
0
 public bool Get(string name, string pass)
 {
     return(_val.GetUser(name, pass));
 }