public async Task <CompanyAddressDto> CreateAddress(CompanyAddressDto dto) { var settings = await _companyAddressManager.Find(dto.Id); if (settings == null) { return(null); } var newEntity = _mapper.Map <CompanyAddressEntity>(dto); var entity = await _companyAddressManager.Create(newEntity); return(_mapper.Map <CompanyAddressDto>(entity)); }
public async Task Post([FromBody] CompanyAddress value) { await _companyAddressManager.Create(value); }