Example #1
0
        public async Task <OrganizationDto> CreateAsync(CreateOrganizationDto input)
        {
            var org = await _orgManager.CreateAsync(
                input.Name,
                input.About,
                input.WebSite,
                input.TaxID,
                input.DateFormat,
                input.CompanyID
                );

            await _orgRepository.InsertAsync(org);

            return(ObjectMapper.Map <Organization, OrganizationDto>(org));
        }
Example #2
0
 public Task <OrganizationDto> CreateAsync(CreateOrganizationDto input)
 {
     return(_orgAppSvc.CreateAsync(input));
 }