private async Task <KorisnickiNalogDtoEL> GetKorisnickiNalog(int id)
        {
            var result = await _korisnikService.GetById(id, true);

            if (!result.Succeeded)
            {
                return(null);
            }

            return(result.Data as KorisnickiNalogDtoEL);
        }
        public async Task <ActionResult <KorisnikResponse> > Me()
        {
            var ID = HttpContext.GetUserID();

            if (ID == null)
            {
                return(BadRequest());
            }

            var response = await _service.GetById((int)ID);

            if (response == null)
            {
                return(NotFound());
            }

            return(Ok(response));
        }
示例#3
0
 public Model.Models.Korisnici GetById(int id)
 {
     return(_service.GetById(id));
 }
示例#4
0
 public Model.Korisnik GetById(int Id)
 {
     return(_service.GetById(Id));
 }
 public Model.Korisnik GetById(int id)
 {
     return(_korisnikService.GetById(id));
 }
示例#6
0
 public KorisnikModel GetById(int id)
 {
     return(_korisnikService.GetById(id));
 }
示例#7
0
 public ActionResult <Model.Korisnik> GetById(int Id)
 {
     return(_service.GetById(Id));
 }