public FileContentResult GetFile(int id) { var imagedata = db.ReturnUtilisateur(id).ImageProfil; var contentType = DBProvider.GetContentType(imagedata); return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower()))); }
public FileContentResult GetFile(int id) { var imagedata = db.ReturnEvenement(id).affiche; var contentType = DBProvider.GetContentType(imagedata); return(new FileContentResult(imagedata, string.Format("image/{0}", contentType.ToString().ToLower()))); }