|
@@ -52,6 +52,7 @@ namespace MTWorkHR.Application.Services
|
|
|
|
|
|
public override async Task<CompanyDto> Create(CompanyDto input)
|
|
public override async Task<CompanyDto> Create(CompanyDto input)
|
|
{
|
|
{
|
|
|
|
+ input.CompanyUser.UserType = UserTypeEnum.Business;
|
|
var userResp = await _userService.Create(input.CompanyUser);
|
|
var userResp = await _userService.Create(input.CompanyUser);
|
|
input.UserId = userResp?.Id;
|
|
input.UserId = userResp?.Id;
|
|
var entity = MapperObject.Mapper.Map<Company>(input);
|
|
var entity = MapperObject.Mapper.Map<Company>(input);
|