public async Task <IActionResult> DeleteById(string groupId) { if (await _groupManager.DeleteByIdAsync(groupId)) { return(Ok("Group has been successfully deleted")); } return(NotFound("Such group hasn't been found")); }
public async Task <IActionResult> DeleteById(string groupId) { if (await _groupManager.DeleteByIdAsync(groupId)) { return(Ok("Group has been successfully deleted")); } return(NotFound("Such group hasn't been found")); }