public async Task <HttpResponseMessage> Update(VehicleMake vehicleMake) { if (!ModelState.IsValid) { return(Request.CreateResponse(HttpStatusCode.BadRequest, "Invalid data")); } VehicleMakeServ vehicleMakeServ = mapper.Map <VehicleMakeServ>(vehicleMake); bool provjera = await VehicleMakeService.Update(vehicleMakeServ); if (provjera) { return(Request.CreateResponse(HttpStatusCode.OK, "Vehicle make is succssesfuly updated!")); } else { return(Request.CreateResponse(HttpStatusCode.Conflict, "Vehicle make is not updated!")); } }