Exemple #1
0
        public IHttpActionResult GetBuildingById(int buildingId)
        {
            var building = _bll.GetBuildingById(buildingId);

            if (building == null)
            {
                return(BadRequest());
            }
            return(Ok(building));
        }
Exemple #2
0
        public void TestGetBuildingById()
        {
            var result = bll.GetBuildingById(1);

            Assert.IsNotNull(result);
        }