public IActionResult Detail(int ID) { var model = _productConfigResposistory.GetByID(ID) ?? new ProductConfig(); return(View(model)); }
public ActionResult <string> Detail(int ID) { var model = _productConfigResposistory.GetByID(ID) ?? new ProductConfig(); return(ObjectToJson(model)); }