public async Task <IActionResult> Count(GuestFilter filter) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = await _GuestService.CountAsync(filter); if (!result.Succeeded) { return(BadRequest(result.Errors)); } return(Ok(result)); }