public void CreatePhoneQuestionnaire(PhoneQuestionnaire p) { try { _phoneRepository.Add(p); } catch { throw; } }
/// <summary> /// Initializes a new instance of the <see cref="Position" /> class. /// </summary> /// <param name="_title"> The _title. </param> /// <param name="_minSal"> The _min sal. </param> /// <param name="_maxSal"> The _max sal. </param> /// <param name="_shortDesc"> The _short desc. </param> /// <param name="_longDesc"> The _long desc. </param> /// <param name="_exp"> The _exp. </param> /// <param name="_qaire"> The _qaire. </param> /// <param name="_phQuaire"> The _PH quaire. </param> public Position(string _title, float? _minSal, float? _maxSal, string _shortDesc, string _longDesc, int _exp, Questionnaire _qaire, PhoneQuestionnaire _phQuaire) : this() { Title = _title; MinSalary = _minSal; MaxSalary = _maxSal; ShortDescription = _shortDesc; LongDescription = _longDesc; MinExp = _exp; PositionQuestionnaire = _qaire; PhoneInterview = _phQuaire; }
/// <summary> /// Creates the phone questionnaire. /// </summary> /// <param name="phQuest"> The ph quest. </param> /// <returns> ActionResult. </returns> public ActionResult CreatePhoneQuestionnaire(PhoneQuestionnaire phQuest) { if (ModelState.IsValid) { } return View(); }