public async Task <HttpResponseMessage> GetPotvrdenoAsync() { try { var response = Mapper.Map <IEnumerable <KorisnikViewModel> >(await korisnikService.GetPotvrdenoAsync()); return(Request.CreateResponse(HttpStatusCode.OK, response)); } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.NotFound, e)); } }