public ActionResult AddDb(dbindex _objDbAdd) { var addDb = _repository.Add(_objDbAdd); if ((bool)addDb == true) { string msg = "Db Added"; return Redirect("/DbIndex/Index/" + msg); } return Redirect("/DbIndex/Index/" + "Error"); }
public ActionResult DbDropDown(dbindex _listDbs) { var getDbDropDown = _repository.GetAll(); //string a = "a"; //string b = "b"; //var getGenericTest = _repository.GetList(ref a, ref b); _listDbs.GetDbDrop = getDbDropDown.Select(d => new SelectListItem() { Text = d.dbTitle, Value = d.dbKeyId.ToString() }); return PartialView("_dbDropDown", _listDbs); }
public ActionResult DeleteDb(dbindex _objDelete) { var deleteDb = _repository.Delete(_objDelete); return Redirect("/DbIndex/Index/" + "Db_Deleted"); }
public ActionResult PostDb(dbindex _objDbEdit) { var postDb = _repository.Edit(_objDbEdit); if ((bool)postDb == true) { string msg = "Success"; return Redirect("/DbIndex/Index/" + msg); } else { string msg = "Failure"; return Redirect("/DbIndex/Index/" + msg); } }