private static int GetStatusCode(IdentityResponseCode responseCode) { return(responseCode.Code switch { (int)IdentityResponseCodeRaw.Success => (int)HttpStatusCode.OK, (int)IdentityResponseCodeRaw.UnknownError => (int)HttpStatusCode.InternalServerError, _ => (int)HttpStatusCode.BadRequest, });
public LoginResponse(IdentityResponseCode responseCode) { ResponseCode = responseCode; }