public void DeavtivateRightsSellingUpdateById(Int64 id) { RightsSellingDocument document = _RightsSellingDocument.Table.Where(i => i.Id == id && i.Deactivate == "N").FirstOrDefault(); document.Deactivate = "Y"; document.DeactivateBy = document.EnteredBy; document.DeactivateDate = DateTime.Now; _RightsSellingDocument.Update(document); }
public void InsertRightsSellingDocument(RightsSellingDocument RightsSellingDocument) { _RightsSellingDocument.Insert(RightsSellingDocument); }