public DivisiModels(DivisiModels divisi) //create { this.Name = divisi.Name; this.CreateDate = DateTimeOffset.Now; this.IsDelete = false; this.DepartmentId = Department.Id; }
public void Update(DivisiModels divisi) { this.Name = divisi.Name; this.UpdateDate = DateTimeOffset.Now; this.DepartmentId = Department.Id; }