public void Effort_IncidentTypes_GetByPrimaryKey_Test() { int _id = _incidentTypeId; IncidentTypeData _row = _sut.GetByPrimaryKey(_id); Assert.IsNotNull(_row); Assert.AreEqual(_row.IncidentTypeId, _id); System.Diagnostics.Debug.WriteLine(_row.ToString()); }
// /// <summary> /// GET: EmailTemplate/Details/5 /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IncidentTypeData _incidentType = _access.GetByPrimaryKey(id.Value); if (_incidentType == null) { return(HttpNotFound()); } return(View(_incidentType)); }