public IHttpActionResult CountArchiveByGrid(ODataActionParameters parameter) { return(CommonHelpers.ActionHelper.TryCatchWithLoggerGeneric(() => { ArchiveFinderModel finder = parameter[ODataConfig.ODATA_FINDER_PARAMETER] as ArchiveFinderModel; int count = 8; return Ok(count); }, _logger, _logCategories)); }
public IHttpActionResult SearchArchiveByGrid(ODataActionParameters parameter) { return(CommonHelpers.ActionHelper.TryCatchWithLoggerGeneric(() => { ArchiveFinderModel finder = parameter[ODataConfig.ODATA_FINDER_PARAMETER] as ArchiveFinderModel; ICollection <BandiDiGaraModels.ArchiveModel> archives = new List <BandiDiGaraModels.ArchiveModel> { new BandiDiGaraModels.ArchiveModel { ArchiveName = "Test Nome Archive 1", Subject = "Test Oggetto Archive 1", RegistrationDate = new DateTimeOffset(), }, new BandiDiGaraModels.ArchiveModel { ArchiveName = "Test Nome Archive 2", Subject = "Test Oggetto Archive 2", RegistrationDate = new DateTimeOffset(), }, new BandiDiGaraModels.ArchiveModel { ArchiveName = "Test Nome Archive 3", Subject = "Test Oggetto Archive 3", RegistrationDate = new DateTimeOffset(), }, new BandiDiGaraModels.ArchiveModel { ArchiveName = "Test Nome Archive 4", Subject = "Test Oggetto Archive 4", RegistrationDate = new DateTimeOffset(), } }; return Ok(archives); }, _logger, _logCategories)); }