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