public async Task <IActionResult> GetAllSpecialOffers(int enterpriseId)
        {
            var temp = await specialOfferService.GetAllSpecialOffers(enterpriseId);

            if (temp != null)
            {
                return(Ok(temp));
            }
            else
            {
                return(BadRequest(new { Message = "Something went wrong. Please, try again later." }));
            }
        }
Exemple #2
0
        public HttpResponseMessage GetAllSpecialOffer(HttpRequestMessage reqObject)
        {
            var result = _ISpecialOfferService.GetAllSpecialOffers();

            if (result != null)
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "information has been fetched successfully");
            }
            else
            {
                _serviceResponse = _IDataManipulation.SetResponseObject(result, "Account Types Not Found...");
            }
            _response = _IDataManipulation.CreateResponse(_serviceResponse, reqObject);
            return(_response);
        }