public TeamDetailsDataModel DoGetDetailsByID(int ID) { TeamDetailsDataModel result = new TeamDetailsDataModel(); using (var db = new RITUAL()) { TEAM data = db.TEAM.Where(w => w.ID == ID).FirstOrDefault(); PublicMethodRepository.HtmlDecode(data); result.Data = data; } return(result); }
public ActionResult TeamDataAdd() { TeamDetailsDataModel defaultModel = new TeamDetailsDataModel(); //defaultModel.Data.PUB_DT_STR = DateTime.UtcNow.AddHours(8).ToString("yyyy\\/MM\\/dd"); //defaultModel.Data.DISABLE = false; defaultModel.Data.SQ = 1; //defaultModel.Data.HOME_PAGE_DISPLAY = true; TeamModule mdu = new TeamModule(); var cities = mdu.GetCityData(); TempData["cities"] = cities; return(View(defaultModel)); }
public ActionResult TeamDataEdit(int?ID) { if (!ID.HasValue) { return(RedirectToAction("TeamList")); } TeamDetailsDataModel model = new TeamDetailsDataModel(); TeamModule mdu = new TeamModule(); model = mdu.DoGetDetailsByID((int)ID); var cities = mdu.GetCityData(); TempData["cities"] = cities; return(View(model)); }