PropertyPhotoGetById() public méthode

public PropertyPhotoGetById ( string stringId ) : PhotoContent
stringId string
Résultat PhotoContent
Exemple #1
0
        public ActionResult Details(string stringId = "")
        {
            // Attempt to get the matching object
            var o = m.PropertyPhotoGetById(stringId);

            if (o == null)
            {
                return(HttpNotFound());
            }
            else
            {
                // Return a file content result
                // Set the Content-Type header, and return the photo bytes
                return(File(o.Content, o.ContentType));
            }
        }