public ActionResult ViewCategoryName(int id, string cid) { DALProduct dal = new DALProduct(); var record = dal.ViewProducts(id); var catName = dal.viewCategoryName(cid); ViewData.Add("categoryName", catName); return(View(record)); }