Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public IActionResult Edit(int id) { ViewData["Title"] = "Edit Customer"; ViewData["resident"] = resident.Get().data.Where(x => x.IsActive == true).Select(x => new SelectListItem() { Value = x.ResidentID.ToString(), Text = x.ResidentName }).ToList(); var result = repo.GetByID(id).data; return(PartialView("_Edit", result)); }