public ActionResult SelectQasForeignKeys() { SelectQasFKs setForeignKeys = new SelectQasFKs(); setForeignKeys.Advertises = advertiseService.GetAdvertises(); setForeignKeys.SubDomains = subDomainService.GetSubDomains(); return(View(setForeignKeys)); }
public ActionResult SelectQasForeignKeys(SelectQasFKs model) { Qa qa = new Qa(); qa.AdvertiseId = model.SelectedAdvertiseId; qa.SubDomainId = model.SelectedSubDomainId; return(RedirectToAction("CreateQa", new { qa.AdvertiseId, qa.SubDomainId })); }
public ActionResult SelectQasForeignKeys() { SelectQasFKs setForeignKeys = new SelectQasFKs(); try { setForeignKeys.Domains = domainService.GetDomains(); setForeignKeys.SubDomains = subDomainService.GetSubDomains(); } catch (Exception e) { Log.Error(e.ToString()); } return(View(setForeignKeys)); }
public ActionResult SelectQasForeignKeys(SelectQasFKs model) { Qa qa = new Qa(); try { qa.DomainId = model.SelectedDomainId; qa.SubDomainId = model.SelectedSubDomainId; } catch (Exception e) { Log.Error(e.ToString()); } return(RedirectToAction("CreateQa", new { qa.DomainId, qa.SubDomainId })); }