public ActionResult EditRow(int id, string Company, DateTime Deadline, string Status, string Title, string oper)
        {
            JqGridOperations Oper = (JqGridOperations)Enum.Parse(typeof(JqGridOperations),oper);

            if (Oper == JqGridOperations.edit)
            {
                var item = new JobService().EditItem(id, Title, Company, Deadline, Status);
                
            }
            return Json(true);
        }
 public ActionResult Edit(int id)
 {
     var item = new JobService().GetItem(id);
     if (item == null) return RedirectToAction("Index");
     return View(item);
 }
 public ActionResult List(int page, int rows, string sidx, string sord, string Position)
 {
     var jobs = new JobService().List();
     bool searchOn = bool.Parse(Request.Form["_search"]);
     string searchExp = "";
     if (searchOn)
     {
         searchExp = string.Format("{0}.ToString().Contains(@0)", getFormValue("searchField"));
         jobs = jobs.Where(searchExp, new string[] { getFormValue("searchString") });
     }
     var model = from entity in jobs.OrderBy(sidx + " " + sord)
                 select new
                 {
                     Id = entity.Id,
                     Title = entity.Title,
                     Company= entity.Company,
                     Deadline = entity.Deadline.ToShortDateString(),
                     Status = entity.Status
                 };
     return Json(model.ToJqGridData(page, rows, null, "", new[] { "Title", "Company", "Deadline","Status"}), JsonRequestBehavior.AllowGet);
 }