コード例 #1
0
        public async Task <IActionResult> Get()
        {
            var service = new PublisherRepositoryService(connString);
            var result  = await service.GetAllPublisher();

            var response = new GenericResponse <List <PublisherDTO> >()
            {
                IsSuccess    = true,
                Message      = "Data fetched successfully.",
                ResponseCode = 200,
                Result       = result
            };

            return(Ok(response));
        }