public List<MMERT.MODEL.Projects> Listing(MMERT.MODEL.Projects s)
        {
            var result = new List<MMERT.MODEL.Projects>();

            using (var db = new Context())
            {
                var proje = db.Projects.ToList();

                foreach (var prjd in proje)
                {
                    var model = new MMERT.MODEL.Projects
                    {
                        ID = prjd.ID,
                        PROJECTNAME = prjd.PROJECTNAME,
                        PROJECTDESCRP = prjd.PROJECTDESCRP,
                        BEGIN = prjd.BEGIN,
                        FINISH=prjd.FINISH,
                        CATEGORYID=prjd.CATEGORYID
                    };

                    result.Add(model);
                }
                return result;
            }
        }
예제 #2
0
        public List <MMERT.MODEL.Projects> Listing(MMERT.MODEL.Projects s)
        {
            var result = new List <MMERT.MODEL.Projects>();


            using (var db = new Context())
            {
                var proje = db.Projects.ToList();

                foreach (var prjd in proje)
                {
                    var model = new MMERT.MODEL.Projects
                    {
                        ID            = prjd.ID,
                        PROJECTNAME   = prjd.PROJECTNAME,
                        PROJECTDESCRP = prjd.PROJECTDESCRP,
                        BEGIN         = prjd.BEGIN,
                        FINISH        = prjd.FINISH,
                        CATEGORYID    = prjd.CATEGORYID
                    };

                    result.Add(model);
                }
                return(result);
            }
        }
 public ActionResult ProjeEkle(MMERT.MODEL.Projects prjcts)
 {
     srvcProject.Insert(prjcts);
     _uow.SaveChanges();
     ViewBag.Ekle = "Eklendi";
     return(View("Projeler"));
 }
        //
        // GET: /Proje/

        public ActionResult Index(MMERT.MODEL.Projects prjcts)
        {
            List <MMERT.MODEL.Projects> ls = srvcProject.Listing(prjcts);

            return(View(ls));
        }
예제 #5
0
 public void Delete(MMERT.MODEL.Projects Project)
 {
     _userRepo.Delete(Project);
 }
예제 #6
0
 public void Update(MMERT.MODEL.Projects Project)
 {
     _userRepo.Update(Project);
 }
예제 #7
0
 public void Insert(MMERT.MODEL.Projects Project)
 {
     _userRepo.Insert(Project);
 }
예제 #8
0
 public List <MMERT.MODEL.Projects> ValidateUser1(MMERT.MODEL.Projects kllnici)
 {
     throw new NotImplementedException();
 }