public int Add(Source source) { return base.ExecuteNonQuery(string.Format("EXEC SOURCE_ADD '{0}'", source.Name)); }
public int Update(Source source) { return base.ExecuteNonQuery(string.Format("EXEC SOURCE_UPDATE {0},'{1}'",source.ID, source.Name)); }
public int Register(int id, string firstName, string lastName, string password, Address address, UserType userType, Source source, string createdBy, string createdOn, string voided, string voidedBy, string voidedOn, string reasonVoided, string Email, int CNIC, string Gender, Sect sect, GPSLOC gpsloc) { return new UserData().Register(new User() { ID = id, FirstName = firstName, LastName = lastName, Password = password, Address = address, UserType = userType, Source = source, CreatedBy = createdBy, CreatedOn = createdOn, VoidedBy = voidedBy, VoidedOn = voidedOn, ReasonVoided = reasonVoided, Email = Email, CNIC = CNIC, Gender = Gender, Sect = sect, GPSLOC = gpsloc }); }