Skip to content

Commit

Permalink
few bugs fixed in payment
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbal-emon committed May 28, 2024
1 parent 3b65dad commit 3ecc61d
Show file tree
Hide file tree
Showing 9 changed files with 1,152 additions and 2 deletions.
1 change: 1 addition & 0 deletions HomeRentManagement/Data/Payment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class Payment
{
[Key]
public int PaymentID { get; set; }
public string? PaymentMonth { get; set; }

public int UnitID { get; set; }
[ForeignKey("UnitID")]
Expand Down
1 change: 1 addition & 0 deletions HomeRentManagement/Data/Rental.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ public class Rental
{
[Key]
public int RentID { get; set; }
public string? RentMont { get; set; }

public int TenantID { get; set; }
[ForeignKey("TenantID")]
Expand Down
2 changes: 2 additions & 0 deletions HomeRentManagement/Data/RentalService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public async Task updatedateRent(Rental updateRent,int newUnitId)
// Update the properties of the existing member with the new values
existingRent.totalRent = updateRent.totalRent;
existingRent.TenantID=updateRent.TenantID;
existingRent.RentMont = updateRent.RentMont;


existingRent.RentDate = updateRent.RentDate;

Expand Down
Loading

0 comments on commit 3ecc61d

Please sign in to comment.