how to resolve Error 1 The type or namespace name 'DetailsMa

Jul 27 2018 2:38 AM
List<DetailsMaster> allDetails = new List<DetailsMaster>();
using (ThenmozhiEntities dc = new ThenmozhiEntities())
{
allDetails = dc.DetailsMaster.ToList();
}
return new JsonResult { Data = allDetails, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
}
public JsonResult GetDetailsWithParameter(string prefix)
{
List<DetailsMaster> allDetails = new List<DetailsMaster>();
using (ThenmozhiEntities dc = new ThenmozhiEntities())
{
allDetails = dc.DetailsMaster.Where(a => a.Name.Contains(prefix)).ToList();

Answers (1)