예제 #1
0
        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));
        }
예제 #2
0
        public async Task <ActionResult <Applicant> > Transfer([FromBody] TransferApplicantCommand model)
        {
            var newApplicant = await _dummyUserService.Transfer(model);

            return(ResponsePost(nameof(Get), new { id = newApplicant.Username }, newApplicant));
        }