public void Insert(string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn) { ProductStatusDescriptor item = new ProductStatusDescriptor(); item.Name = Name; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.Save(UserName); }
public void Update(int ProductStatusDescriptorId, string Name, string CreatedBy, DateTime CreatedOn, string ModifiedBy, DateTime ModifiedOn) { ProductStatusDescriptor item = new ProductStatusDescriptor(); item.ProductStatusDescriptorId = ProductStatusDescriptorId; item.Name = Name; item.CreatedBy = CreatedBy; item.CreatedOn = CreatedOn; item.ModifiedBy = ModifiedBy; item.ModifiedOn = ModifiedOn; item.MarkOld(); item.Save(UserName); }
public bool Destroy(object ProductStatusDescriptorId) { return(ProductStatusDescriptor.Destroy(ProductStatusDescriptorId) == 1); }