public void SuaTheLoai(TheLoaiDTO theLoaiDto) { var theLoai = _theLoaiRepository.GetBy(theLoaiDto.MaTL); theLoaiDto.MappingTheLoai(theLoai); _theLoaiRepository.Update(theLoai); }
public void ThemTheLoai(TheLoaiDTO theLoaiDto) { var theLoai = theLoaiDto.MappingTheLoai(); _theLoaiRepository.Add(theLoai); }