Beispiel #1
0
        public async Task <IActionResult> CompleteRegister([FromBody] CompleteRegisterDAO complete)
        {
            var response = await _registerRepository.CompleteRegister(complete);

            if (response.StatusCode == System.Net.HttpStatusCode.OK)
            {
                return(Ok(new Response {
                    Status = response.StatusCode.ToString(), Message = response.Message
                }));
            }
            else
            {
                return(StatusCode((int)response.StatusCode, new Response {
                    Status = "Error", Message = response.Message
                }));
            }
        }