mirror of
https://github.com/bitwarden/server.git
synced 2025-07-02 00:22:50 -05:00
user edit
This commit is contained in:
@ -69,5 +69,16 @@ namespace Bit.Admin.Controllers
|
||||
await _organizationRepository.ReplaceAsync(organization);
|
||||
return RedirectToAction("Edit", new { id });
|
||||
}
|
||||
|
||||
public async Task<IActionResult> Delete(Guid id)
|
||||
{
|
||||
var organization = await _organizationRepository.GetByIdAsync(id);
|
||||
if(organization != null)
|
||||
{
|
||||
await _organizationRepository.DeleteAsync(organization);
|
||||
}
|
||||
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user