Beispiel #1
0
        public ActionResult Dashboard()
        {
            AsignarContext ctx = new AsignarContext("AsignarDB");

            var bugs = ctx.Bugs.ToList();
            return View(bugs);
        }
Beispiel #2
0
 public MyBug GetBug()
 {
     using (AsignarContext db = new AsignarContext("AsignarDB"))
     {
         var bug = db.Bugs.First();
         var bug2 = new MyBug {Name = bug.Subject, Name2 = bug.Comments};
         return bug2;
     }
 }
Beispiel #3
0
 //
 // GET: /Filters/
 public ActionResult Filters()
 {
     AsignarContext ctx = new AsignarContext("AsignarDB");
     var filters = ctx.Filters.Select(f => f).ToList();
     return View(filters);
 }
Beispiel #4
0
 public ActionResult MyProjects()
 {
     AsignarContext ctx = new AsignarContext("AsignarDB");
     var projects = ctx.Projects.Select(b => b).ToList();
     return PartialView(projects);
 }