public void PostDeleteM(int id)
 {
     using (var filerep = new HIVTestUploadRepository())
     {
         if (id != 0)
         {
             HIVPatientFile Pfile = filerep.GetById(id);
             filerep.Delete(Pfile);
         }
     }
 }
        public string Header(int id)
        {
            var Filerep = new HIVTestUploadRepository();
            var filerec = Filerep.GetById(id);
            var fi      = new System.Net.Mime.ContentDisposition
            {
                FileName = filerec.FileName,
                Inline   = false,
            };

            return(fi.ToString());
        }
        public HIVPatientFile Find(int id)
        {
            var filerep = new HIVTestUploadRepository();

            return(filerep.GetById(id));
        }