public IHttpActionResult RemoveUserAccount(Guid userId, string accountType, string name) { if (string.IsNullOrWhiteSpace(accountType)) { throw new ArgumentException("Account type must be defined."); } AccountType type = ParseAccountType(accountType); identityManagementService.RemoveUserAccount(userId, type, name); return(Ok()); }