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 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)); }
public void Delete(MMERT.MODEL.Projects Project) { _userRepo.Delete(Project); }
public void Update(MMERT.MODEL.Projects Project) { _userRepo.Update(Project); }
public void Insert(MMERT.MODEL.Projects Project) { _userRepo.Insert(Project); }
public List <MMERT.MODEL.Projects> ValidateUser1(MMERT.MODEL.Projects kllnici) { throw new NotImplementedException(); }