public void AddT(TreatmentModelView model)
 {
     using (var treatment = new TreatmentRepository())
     {
         var treat = new Treatment
         {
             Tid = model.Tid,
             Tname = model.Tname,
         };
         treatment.Insert(treat);
     }
 }
 public void Insert(Treatment model)
 {
     _treatmentRepository.Insert(model);
 }
 public void Update(Treatment model)
 {
     _treatmentRepository.Update(model);
 }
 public void Delete(Treatment model)
 {
     _treatmentRepository.Delete(model);
 }