Question: I am trying to do courch search as snap below but the string have to change to int but l do not know how to
I am trying to do courch search as snap below but the string have to change to int but l do not know how to do it

The srrch are both inlude number and string as below
public ActionResult CourseSearch(String q) { var courses = Getstcourse(q); return PartialView(courses); } private List Getstcourse(string serachstring) { return db.Courses.Where(a => a.Title.Contains(serachstring)).ToList();
}
this the courchserch as
@model IEnumerable
}
@foreach (var item in Model) {
@item.Course.Title
how to change form string to int and string to serch for courch detial
Application name Index Course Search search Create New Course Title Description Number of Credits IT2030 Asp.net 4 Edit | Details | Delete IT2320 Internet Edit | Details | Delete Application name Index Course Search search Create New Course Title Description Number of Credits IT2030 Asp.net 4 Edit | Details | Delete IT2320 Internet Edit | Details | Delete
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
