public async Task <ActionResult <Applicant> > Transfer(string username, int company) { await _dummyUserService.Transfer(new TransferApplicantCommand(username, company)); var newUser = await _dummyUserService.Find(username); return(ResponsePost(nameof(GetByUsername), new { username }, newUser)); }
public async Task <ActionResult <Applicant> > Transfer([FromBody] TransferApplicantCommand model) { var newApplicant = await _dummyUserService.Transfer(model); return(ResponsePost(nameof(Get), new { id = newApplicant.Username }, newApplicant)); }