Ejemplo n.º 1
0
        public void GetResourceStarById()
        {
            ResourceStarService resourceStarCRUD = new ResourceStarService();
            ResourceStar        resourceStar     = resourceStarCRUD.GetResourceStarById("9202ec4c-c09e-4064-a794-5db497a03a37");

            Assert.IsNotNull(resourceStar);
        }
Ejemplo n.º 2
0
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ResourceStar      resourceStar      = resourceStarCRUD.GetResourceStarById(id);
            ResourceStarModel resourceStarModel = resourceStar.ToModel();

            resourceStarModel.ResourceTypeSelectItems = getResourceTypes();
            return(View(resourceStarModel));
        }