I have controller.cs code :
public class GroupsController : Controller
{
public ActionResult Index()
{
GroupTypeRepository groupTypeRepo = new GroupTypeRepository();
var groupTypeNames = groupTypeRepo.GetAll().ToList();
//like GroupType I have Group also so i want to pass both GroupType and Group object to my below return View("Groups", groupTypeNames);
// how can i do this?
return View("Groups", groupTypeNames);
}
I tried it in doing in /Model Folder in Model.cs
but its not good approach please guide how to achieve this?
thanks