public int SaveGroup(Contract contract, int groupId, string name, string schedulesXML) { return(groupId = new SqlDataExecutor().Execute <int>(contract.ConnectionString, contract.Database, StoredProcedure.SaveGroup, Convert.ToInt32, new object[] { groupId , name , schedulesXML } )); }
public User SetPasswordExpiration(User user) { if (user != null) { if (user.UserId != null) { ITypeReader reader = new SqlDataExecutor().QueryReader(null, _dbConnName, StoredProcedure.SetPasswordExpiration, user.UserId, ""); reader.Read(); user.PasswordExpiration = reader.GetDate("ExpirationDate"); } } return(user); }