public void AddUpdateUsers(RegistrationEntity regObj) { try { RegistrationDataProvider regProvider = new RegistrationDataProvider(); regProvider.AddUserDetails(regObj); } catch (Exception ex) { throw ex; } }
public void AddUserDetails(RegistrationEntity regObj) { try { SQLHandler sqlh = new SQLHandler(); List <KeyValuePair <string, object> > Param = new List <KeyValuePair <string, object> >(); Param.Add(new KeyValuePair <string, object>("@UserID", regObj.UserID)); Param.Add(new KeyValuePair <string, object>("@UserName", regObj.Name)); Param.Add(new KeyValuePair <string, object>("@EmailID", regObj.EmailID)); Param.Add(new KeyValuePair <string, object>("@Password", regObj.Password)); Param.Add(new KeyValuePair <string, object>("@UserModuleID", regObj.UserModuleID)); Param.Add(new KeyValuePair <string, object>("@PortalID", regObj.PortalID)); Param.Add(new KeyValuePair <string, object>("@CultureCode", regObj.CultureCode)); sqlh.ExecuteNonQuery("usp_Registration_AddUpdate", Param); } catch (Exception ex) { throw ex; } }