public async Task <IActionResult> UnregisterActivity(int id) { var user = await GetCurrentUserAsync(); var signedUp = _allReadyDataAccess.GetActivitySignup(id, user.Id); if (signedUp == null) { return(HttpNotFound()); } _allReadyDataAccess.DeleteActivitySignup(signedUp.Id); return(new HttpStatusCodeResult((int)HttpStatusCode.OK)); }