public IActionResult GetById(int referralId)
        {
            if (_referralService.GetById(referralId) == null)
            {
                return(NotFound());
            }

            return(Ok(_referralService.GetById(referralId)));
        }
Beispiel #2
0
        public Referral GetById(string id, string business_id)
        {
            var resultData = _referralService.GetById(business_id, id);

            if (resultData != null)
            {
                return(resultData);
            }
            else
            {
                return(null);
            }
        }