public async Task <IActionResult> Activation(ActivationViewModel activation) { ActivationResponse result = await _account.ActiveUserAsync(activation); switch (result) { case ActivationResponse.Success: return(Ok(new { Id = 0, Title = "User Actived", Result = new { } })); case ActivationResponse.WrongActiveCode: return(Ok(new { Id = -1, Title = "Wrong ActiveCode", Result = new { } })); case ActivationResponse.Exception: return(Ok(new { Id = -3, Title = "Exception", Result = new { } })); default: goto case ActivationResponse.Exception; } }