public void Delete() { if (AuthRepo.IsAuthenticated()) { Response.StatusCode = AppRepo.DeleteAllRecords(AuthRepo.CurrentUserId); return; } Response.StatusCode = 401; }