public void DeleteTitle(ListItemTitleViewModel deleteTitle)
        {
            TitleBusinessLogic logic = new TitleBusinessLogic();
            Title title = new Title(deleteTitle.Identifier, deleteTitle.Abbreviation, deleteTitle.Description);

            logic.DeleteTitle(title);
        }
        public void ModifyTitle(TitleViewModel modifiedTitle)
        {
            TitleBusinessLogic logic = new TitleBusinessLogic();
            Title title = new Title(modifiedTitle.Identifier, modifiedTitle.Abbreviation, modifiedTitle.Description);

            logic.ModifyTitle(title);
        }
        public void AddTitle(TitleViewModel newTitle)
        {
            TitleBusinessLogic logic = new TitleBusinessLogic();
            Title title = new Title(newTitle.Identifier, newTitle.Abbreviation, newTitle.Description);

            logic.AddTitle(title);
        }
        public IEnumerable <ListItemTitleViewModel> GetTitles()
        {
            TitleBusinessLogic  logic  = new TitleBusinessLogic();
            IEnumerable <Title> titles = logic.GetTitles();
            IEnumerable <ListItemTitleViewModel> listItems = titles
                                                             .Select(x => new ListItemTitleViewModel
            {
                Identifier   = x.Identifier,
                Abbreviation = x.Abbreviation,
                Description  = x.Description
            });

            return(listItems);
        }
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_genre != null)
                {
                    _genre.Dispose();
                    _genre = null;
                }

                if (_title != null)
                {
                    _title.Dispose();
                    _title = null;
                }
            }
        }
 public ClinicianProxy()
 {
     _clinicianBl = new ClinicianBusinessLogic();
     _titleBl     = new TitleBusinessLogic();
 }
 public ApplicationFaçade()
 {
     _genre = new GenreBusinessLogic();
     _title = new TitleBusinessLogic();
 }