Esempio n. 1
0
        public void SuaTheLoai(TheLoaiDTO theLoaiDto)
        {
            var theLoai = _theLoaiRepository.GetBy(theLoaiDto.MaTL);

            theLoaiDto.MappingTheLoai(theLoai);

            _theLoaiRepository.Update(theLoai);
        }
Esempio n. 2
0
        public void ThemTheLoai(TheLoaiDTO theLoaiDto)
        {
            var theLoai = theLoaiDto.MappingTheLoai();

            _theLoaiRepository.Add(theLoai);
        }