void insertDataKeyValue(int CompanyId, string DataKey, int DataValue) { DAL.DataKeyValue dk = new DAL.DataKeyValue(); dk.CompanyId = CompanyId; dk.DataKey = DataKey.Trim(' '); dk.DataValue = DataValue; DB.DataKeyValues.Add(dk); DB.SaveChanges(); }
void SetDataKeyValue(int FundMasterId, string DataKey, int DataValue) { DAL.DataKeyValue dk = new DAL.DataKeyValue(); dk.FundMasterId = FundMasterId; dk.DataKey = DataKey.Trim(' '); dk.DataValue = DataValue; DB.DataKeyValues.Add(dk); DB.SaveChanges(); }
private BLL.DataKeyValue DataKeyValueDAL_BLL(DAL.DataKeyValue DataKeyValueFrom) { BLL.DataKeyValue DataKeyValueTo = DataKeyValueFrom.toCopy <BLL.DataKeyValue>(new BLL.DataKeyValue()); return(DataKeyValueTo); }