fix register datetime kind
This commit is contained in:
parent
d2959cac31
commit
aa7c41169f
@ -1,7 +1,6 @@
|
|||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
using EnotaryoPH.Data;
|
using EnotaryoPH.Data;
|
||||||
using EnotaryoPH.Data.Entities;
|
using EnotaryoPH.Data.Entities;
|
||||||
using EnotaryoPH.Web.Common.Services;
|
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using Microsoft.AspNetCore.Mvc.RazorPages;
|
using Microsoft.AspNetCore.Mvc.RazorPages;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@ -61,13 +60,15 @@ namespace EnotaryoPH.Web.Pages
|
|||||||
CommissionNumber = CommissionNumber,
|
CommissionNumber = CommissionNumber,
|
||||||
IBPNumber = IBPNumber,
|
IBPNumber = IBPNumber,
|
||||||
MCLEComplianceNumber = MCLEComplianceNumber,
|
MCLEComplianceNumber = MCLEComplianceNumber,
|
||||||
MCLEDate = new DateTime(MCLEDate.Value.Ticks, DateTimeKind.Utc),
|
MCLEDate = MCLEDate.ToUTC(),
|
||||||
OfficeAddress = OfficeAddress,
|
OfficeAddress = OfficeAddress,
|
||||||
PTRDate = new DateTime(PTRDate.Value.Ticks, DateTimeKind.Utc),
|
PTRDate = PTRDate.ToUTC(),
|
||||||
PTRlocation = PTRLocation,
|
PTRlocation = PTRLocation,
|
||||||
PTRNumber = PTRNumber,
|
PTRNumber = PTRNumber,
|
||||||
Rollnumber = RollNumber,
|
Rollnumber = RollNumber,
|
||||||
Status = "New"
|
Status = "New",
|
||||||
|
CreatedOn = DateTime.UtcNow,
|
||||||
|
Lawyer_UID = Guid.NewGuid()
|
||||||
};
|
};
|
||||||
_notaryoDBContext.Lawyers.Add(newLawyer);
|
_notaryoDBContext.Lawyers.Add(newLawyer);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user