public List <USER_NOTIFICATION> GetNotifications(int jobId) { using (TAM_DBEntities dc = new TAM_DBEntities()) { //return dc.USER_NOTIFICATION.Where(x => x.AddedOn > afterDate && x.ContactName == "A").OrderByDescending(x => x.AddedOn).ToList(); return(dc.USER_NOTIFICATION.ToList()); } }
public BaseController() { db = new TAM_DBEntities(); }