public async Task <HttpResponseMessage> AddKorisnikAsync(KorisnikViewModel addObj) { try { var response = await korisnikService.AddAsync(Mapper.Map <IKorisnikDomainModel>(addObj)); return(Request.CreateResponse(HttpStatusCode.OK, response)); } catch (Exception e) { return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, e)); } }