Exemplo n.º 1
0
 public EmployeeRegistrationCommand(EmployeeRegisterRequestDto request)
 {
     FirstName    = request.FirstName.Trim();
     LastName     = request.LastName.Trim();
     StoreId      = request.StoreId;
     DateOfBirth  = request.DateOfBirth;
     EmailAddress = request.EmailAddress.Trim();
     Password     = request.Password.Trim();
     Designation  = request.Designation;
     PhoneNumber  = request.PhoneNumber;
 }
Exemplo n.º 2
0
 public async Task <IActionResult> Register([FromBody] EmployeeRegisterRequestDto request)
 {
     return(Ok(await _mediator.Send(_mapper.Map <EmployeeRegistrationCommand>(request))));
 }