public void AdminInsert(Admin admin) { using (SqlCommand command = new SqlCommand("sp_AdminInsert",GetConnection())) { command.CommandType = CommandType.StoredProcedure; command.Parameters.Add(new SqlParameter("@Username",admin.UserName)); command.Parameters.Add(new SqlParameter("@Password", admin.PassWord)); command.Parameters.Add(new SqlParameter("@Email", admin.Email)); command.Parameters.Add(new SqlParameter("@Name", admin.Name)); command.ExecuteNonQuery(); } }
public int AddAdmin(Admin admin) { Object[] values = { admin.AdminPassWord, admin.AdminUserName }; int k = 0; try { k = ProcessByStore("Admin_add", columnName2insert, values); } catch (Exception ex) { throw ex; } return k; }
public void AdminInsert(Admin admin) { admin_dl.AdminInsert(admin); }
public static AdminBLL getAdminBLL(Admin sc) { return(iMapper.Map <AdminBLL>(sc)); }