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)); }
public Model.Models.Korisnici GetById(int id) { return(_service.GetById(id)); }
public Model.Korisnik GetById(int Id) { return(_service.GetById(Id)); }
public Model.Korisnik GetById(int id) { return(_korisnikService.GetById(id)); }
public KorisnikModel GetById(int id) { return(_korisnikService.GetById(id)); }
public ActionResult <Model.Korisnik> GetById(int Id) { return(_service.GetById(Id)); }