Пример #1
0
        public IActionResult GetSubCategoryByMasterId(int Id)
        {
            QueryableBaseResponse <SubCategory> result = null;

            try
            {
                result = _subService.GetSubCategoryByMasterId(Id);
                if (result.code == ResponseCode.SUCCESS)
                {
                    return(Ok(result.queryableResponse));
                }
                else
                {
                    return(BadRequest());
                }
            }
            catch (Exception)
            {
                return(BadRequest());
            }
        }