public async Task <IActionResult> All() { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } return(Ok(await _campaignService.All())); }
public ActionResult Campaign() { return(View(model: _campaignService.All())); }