public void TestGetEmergencyInfoByConferenceId() { var result = bll.GetEmergencyInfoByConferenceId(1); Assert.AreEqual(1, result.EmergencyInfoId); result = bll.GetEmergencyInfoByConferenceId(0); Assert.AreEqual(null, result); }
public IHttpActionResult GetEmergencyInfoByConferenceId(int conferenceid) { var emergency = _bll.GetEmergencyInfoByConferenceId(conferenceid); if (emergency == null) { return(BadRequest()); } return(Ok(emergency)); }