public ActionResult Sources(int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Source.GetSources())); }
public ActionResult LogIn(int?id) { if (id != null) { ViewBag.Result = ProcessResults.GetById(id.Value); } return(View()); }
public ActionResult AddClassification(int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult EditConcept(int id, int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Concept.GetConcept(id))); }
public ActionResult GetConcepts(int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Concept.GetConcepts(confirmed: false))); }
public ActionResult AddDefinition(int id, int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } ViewBag.ConceptId = id; return(View()); }
public ActionResult AddBranch(int enterpriseId, int?id) { if (id != null) { ViewBag.Result = ProcessResults.GetById(id.Value); } ViewBag.EntId = enterpriseId; return(View()); }
public ActionResult Classifications(int?result) { if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } var f = DataManager.Classification.GetClassifications(); return(View(DataManager.Classification.GetClassifications())); }
public ActionResult Definition(int id, int?result) { var definition = DataManager.Concept.GetDefinition(id); if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(definition)); }
// // GET: /Home/ public ActionResult Index(int?result) { string s = HttpContext.Request.PhysicalApplicationPath; if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View((Object)s)); }
public ActionResult AddSource(int?result) { var user = DataManager.DefineUser(HttpContext); if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult LogIn(int?result) { UserModel user = DataManager.DefineUser(HttpContext); if (user != null) { return(RedirectToAction("Index")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult EditPlace(int placeId, int?result) { var user = DefineUser(HttpContext); if (HasNoAccess(user)) { return(RedirectToAction("NoPermission")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Places.GetPlace(placeId))); }
public ActionResult AddCountry(int?result) { var user = DefineUser(HttpContext); if (HasNoAccess(user)) { return(RedirectToAction("NoPermission")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult AddBrand(int?result) { var user = DefineUser(); if (HasNoAccess(user)) { return(NoPermission()); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult EditBrand(int id, int?result) { var user = DefineUser(); if (HasNoAccess(user)) { return(NoPermission()); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Cars.GetBrand(id))); }
public ActionResult EditModel(int?result, int id) { var user = DefineUser(); if (HasNoAccess(user)) { return(NoPermission()); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(Tuple.Create(DataManager.Cars.GetCarModel(id), DataManager.Cars.BodyClasses))); }
public ActionResult Region(int?result, int regionId) { var user = DefineUser(HttpContext); if (HasNoAccess(user)) { return(RedirectToAction("NoPermission")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Regions.GetRegion(regionId))); }
public ActionResult DeleteCountry(int id, int?result) { var user = DefineUser(HttpContext); if (HasNoAccess(user)) { return(RedirectToAction("NoPermission")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Countries.GetCountry(id))); }
public ActionResult Users(int?result) { var user = DefineUser(HttpContext); if (HasNoAccess(user)) { return(RedirectToAction("NoPermission")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } ViewBag.User = user; return(View(DataManager.Users.GetAll())); }
public ActionResult Model(int?result, int id) { var user = DefineUser(); if (HasNoAccess(user)) { return(NoPermission()); } //if (id <= 0) return View(DataManager.Cars.Modifications()); if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(DataManager.Cars.GetCarModel(id))); }
public ActionResult Registration(int?result) { UserModel user = DataManager.DefineUser(HttpContext); if (user != null) { return(RedirectToAction("Index")); } ViewBag.Groups = DataManager.University.GetGroups(); if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View()); }
public ActionResult LogIn(int?result) { User user = DefineUser(HttpContext); if (user != null) { return(RedirectToAction("Index")); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } Culture culture = DefineLanguage(HttpContext); ViewBag.Culture = culture; return(View()); }
public ActionResult EditModification(int?result, int id) { var user = DefineUser(); if (HasNoAccess(user)) { return(NoPermission()); } if (result.HasValue) { ViewBag.Result = ProcessResults.GetById(result.Value); } return(View(new EditModificationModel( DataManager.Cars.GetModification(id), DataManager.Cars.EngineLocations, DataManager.Cars.ValvesArrangements, DataManager.Cars.FuelTypes, DataManager.Cars.BatteryTypes, DataManager.Cars.TransmissionTypes, DataManager.Cars.TireCarcassTypes))); }