public ActionResult City_Update(Guid id) { GetComboboxCompany(); var obj = new City_BCL().ExecuteOf_GetElementById(id); return(View(obj)); }
// GET: Main public ActionResult Index(int?pageIndex, int?SeachLocation) { if (pageIndex == null) { pageIndex = 0; } var location = new City_BCL().ExecuteOf_GetElements(); ViewBag.location = location; ViewBag.SeachLoacation = SeachLocation; ViewBag.pageIndex = pageIndex; ViewBag.PageSize = pageIndex + 1; var pageSize = 9; if (Request.IsAjaxRequest()) { return(RedirectToAction("ShowPost", new { pageIndex = pageIndex, Location = SeachLocation })); } var list = new PostBCL().GetByDateCreate_Paging(pageIndex.Value * pageSize, pageSize, SeachLocation); return(View(list)); }
public JsonResult City_Delete(Guid id) { var result = new City_BCL().ExecuteOf_DeleteElement(id); return(Json(result ? new { rs = true } : new { rs = false })); }