Ejemplo n.º 1
0
        public ActionResult DeleteTagFromPhoto(long photoID, long tagID)
        {
            Photo photo = PhotoService.DeleteTagFromPhoto(photoID, tagID);

            if (photo == null)
            {
                return(new HttpNotFoundResult(string.Format("Photo {0} was not found", photoID)));
            }

            return(PartialView("_TagPartial", photo));
        }