Пример #1
0
        public void TestMethod1()
        {
            ResidentService s = new ResidentService();
            var             o = s.GetOralConsultationsByResidentID(6);

            Assert.AreEqual(o.Count, 1);
            var t = s.GetTypeConsultationsByResidentID(6);

            Assert.AreEqual(t.Count, 1);
        }
        public ActionResult GetOralConsultationsByResidentID([DataSourceRequest] DataSourceRequest request, int residentID)
        {
            DataSourceResult result = service.GetOralConsultationsByResidentID(residentID).ToDataSourceResult(request);

            return(Json(result));
        }