コード例 #1
0
        public void ResourceStarUpdate()
        {
            ResourceStarService resourceStarCRUD = new ResourceStarService();
            ResourceStar        resourceStar     = new ResourceStar();

            resourceStar.ResourceStarID = "9202ec4c-c09e-4064-a794-5db497a03a37";
            resourceStar.ResourceID     = Guid.NewGuid().ToString();
            resourceStar.ResourceType   = 1;
            resourceStarCRUD.Update(resourceStar);
        }
コード例 #2
0
 public ActionResult Edit(ResourceStarModel resourceStarModel)
 {
     if (ModelState.IsValid)
     {
         ResourceStar resourceStar = resourceStarModel.ToEntity();
         resourceStarCRUD.Update(resourceStar);
         return(RedirectToAction("Index"));
     }
     resourceStarModel.ResourceTypeSelectItems = getResourceTypes();
     return(View(resourceStarModel));
 }