public ResponseBaseDto <OutsourcerLoginResponseDto> LoginOutsourcer(OutsourcerLoginRequestDto dto) { var requestDomain = LoginMapper.Map(dto); var responseDomain = LoginService.LoginOutsourcer(requestDomain); var responseDto = LoginMapper.Map(responseDomain); return(string.IsNullOrEmpty(responseDto.Token) ? new ResponseBaseDto <OutsourcerLoginResponseDto> { Error = responseDomain.Message } : new ResponseBaseDto <OutsourcerLoginResponseDto> { Data = responseDto, IsSuccess = true }); }
public Task <ResponseBaseDto <OutsourcerLoginResponseDto> > LoginOutsourcer(OutsourcerLoginRequestDto dto) { return(PostAsync <ResponseBaseDto <OutsourcerLoginResponseDto> >("LoginOutsourcer", content: dto)); }
public static OutsourcerLoginRequest Map(OutsourcerLoginRequestDto dto) { return(AutoMapper.Map <OutsourcerLoginRequestDto, OutsourcerLoginRequest>(dto)); }