Beispiel #1
0
 public static BangLuong MappingBangLuong(this BangLuongDTO bangluongDTO)
 {
     return(new BangLuong
     {
         MaNV = bangluongDTO.MaNV,
         TienThuong = bangluongDTO.TienThuong,
         TamUng = bangluongDTO.TamUng,
         Luong = bangluongDTO.Luong
     });
 }
 public void themBangLuong(BangLuongDTO bangluongDTO)
 {
     _bangluongRepository.ThemBangLuong(bangluongDTO.MappingBangLuong());
 }
 public void suaBangLuong(BangLuongDTO bangluongDTO)
 {
     _bangluongRepository.SuaBangLuong(bangluongDTO.MappingBangLuong());
 }