コード例 #1
0
        public ActionResult <List <ProductDTO> > FindByIds(string id)
        {
            if (DataHelper.IsEmptyString(id))
            {
                return(BadRequest());
            }
            //
            var re = GetListProducts();

            if (re == null)
            {
                return(Problem(statusCode: 500, detail: "Data not exist"));
            }
            return(_productModel.FindByIds(re, id.Split(",")));
        }