public SysSupplierAddress SetToBussinessObject(Sys_SupplierAddress Entity) { SysSupplierAddress Model = new SysSupplierAddress(); Model.SupplierAddressID = Entity.SupplierAddressID; Model.SupplierID = Entity.SupplierID; Model.Address = Entity.Address; Model.ContactPerson = Entity.ContactPerson; Model.ContactNumber = Entity.ContactNumber; Model.EmailAddress = Entity.EmailAddress; Model.FaxNo = Entity.FaxNo; Model.PhoneNo = Entity.PhoneNo; Model.SkypeID = Entity.SkypeID; Model.Website = Entity.Website; Model.IsActive = Entity.IsActive ? "Active" : "Inactive"; return(Model); }
public Sys_SupplierAddress SetToModelObject(SysSupplierAddress model) { Sys_SupplierAddress Entity = new Sys_SupplierAddress(); Entity.SupplierAddressID = model.SupplierAddressID; Entity.SupplierID = model.SupplierID; Entity.Address = model.Address; Entity.ContactPerson = model.ContactPerson; Entity.ContactNumber = model.ContactNumber; Entity.EmailAddress = model.EmailAddress; Entity.FaxNo = model.FaxNo; Entity.PhoneNo = model.PhoneNo; Entity.SkypeID = model.SkypeID; Entity.Website = model.Website; Entity.IsActive = model.IsActive == "Active"; Entity.IsDelete = false; Entity.SetOn = DateTime.Now; Entity.SetBy = model.SetBy; Entity.IPAddress = string.Empty; return(Entity); }