Exemplo n.º 1
0
        /// <summary>
        /// Get an specific specialty
        /// </summary>
        /// <param name="id">Specialty id</param>
        /// <returns></returns>
        public Specialty GetSpecialtyById(int id)
        {
            SQL.Specialties spDb = _specialtyRepository.GetSpecialtiesById(id);

            if (spDb != null)
            {
                Specialty sp = new Specialty
                {
                    Id            = spDb.Id,
                    SpecialtyName = spDb.SpecialtyName
                };

                return(sp);
            }
            else
            {
                return(new Specialty());
            }
        }