public IActionResult AnnoucementListing()
        {
            var result = _announcement_service.RetrieveAnnouncementListing().Where(x => x.IsPublish == true).OrderByDescending(x => x.Srno).ToList();

            if (result != null)
            {
                return(Ok(new Resp(HttpStatusCode.OK, 0, result)));
            }
            else
            {
                return(Ok(new Resp(HttpStatusCode.BadRequest, Models_General.ERR_SERVER_BUSY_INTERNAL_ERROR)));
            }
        }
Exemple #2
0
        public IActionResult AdminAnnoucementListing()
        {
            var result = _announcement_service.RetrieveAnnouncementListing();

            if (result != null)
            {
                return(Ok(new Resp(HttpStatusCode.OK, 0, result)));
            }
            else
            {
                return(Ok(new Resp(HttpStatusCode.BadRequest, Models_General.ERR_SERVER_BUSY_INTERNAL_ERROR)));
            }
        }