// POST: api/Vendor public async Task <IHttpActionResult> Post([FromBody] dto.Vendor vendor) { var vendorEf = Mapper.Map <Vendor>(vendor); var vendorNew = await VendorService.AddUpdate(vendorEf); var vendorDto = Mapper.Map <dto.Vendor>(vendorNew); return(Ok(vendorDto)); }