public FileContentResult GetImg(int Id) { using (var db = new Taller_Mecanico2Entities()) { byte[] byteArray = db.Evidencias.Find(Id).foto; if (byteArray != null) { return(new FileContentResult(byteArray, "image/jpg")); } else { return(null); } } }