示例#1
0
        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));
        }
示例#2
0
 public async Task Post([FromBody] CompanyAddress value)
 {
     await _companyAddressManager.Create(value);
 }