1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

user edit

This commit is contained in:
Kyle Spearrin
2018-03-22 15:50:56 -04:00
parent 6ecaaff94d
commit b011b4e970
7 changed files with 244 additions and 33 deletions

View File

@ -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");
}
}
}