// GET: Configuration public ActionResult Index() { List <SelectListItem> lst = FacadePriority.GetActives().Select(p => new SelectListItem() { Text = p.Description, Value = p.PK_PriorityID.ToString() }).ToList <SelectListItem>(); ViewBag.lstPriority = lst; return(View()); }
public JsonResult GetPriority(string value) { try { ModelViewUserG objCred = new JavaScriptSerializer().Deserialize <ModelViewUserG>(value); var lt = FacadePriority.GetListPriority(objCred); return(Json(lt, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw ex; } }
public ActionResult SetStatus_Priority(string PrioritysID) { try { List <int> arr = PrioritysID.Split(',').Select(Int32.Parse).ToList(); FacadePriority.SetStatus(arr); return(Json("Solicitud procesada con éxito", JsonRequestBehavior.AllowGet)); } catch (Exception ex) { //if (ex.GetType().Name == "Duplicate_Exception") throw ex; //if (ex.GetType().Name == "CustomExceptions") throw ex; //throw new CustomExceptions(ex, CustomExceptions.ErrorCodes.E_C_Generic); throw ex; } }