Esempio n. 1
0
        public ActionResult <IEnumerable <ActorDTO> > GetActorByID(String username = "")
        {
            var user = _userRepo.GetActorByID(username);

            if (user == null)
            {
                return(NotFound("Khong tim thay user"));
            }
            return(Ok(user));
        }
        public IActionResult View(int id)
        {
            var viewModel = _repository.GetActorByID(id);

            return(View(viewModel));
        }