public ActionResult <SiteListResponseModel> GetListSite([FromBody] FilterBillboard filter) { SiteListResponseModel res = new SiteListResponseModel(); try { SiteBL bl = new SiteBL(DbContext); var data = bl.GetListSite(filter); res.data = data.Result; res.Message = "Success"; res.Response = true; res.TotalPages = data.TotalPage; res.TotalData = data.TotalData; return(Ok(res)); } catch (Exception ex) { res.Message = ex.Message; res.Response = false; return(BadRequest(res)); } }