예제 #1
0
        public ActionResult Delete(Guid clientid)
        {
            ClientDAL objdal = new ClientDAL();
            int       i      = objdal.Delete(clientid);

            return(RedirectToAction("Index"));
        }
예제 #2
0
        public bool Delete()
        {
            bool res = false;

            res = ClientDAL.Delete(this);
            return(res);
        }
예제 #3
0
        public Response Delete(Client client)
        {
            Response resultDelete = _clienteDAL.Delete(client);

            if (!resultDelete.Success)
            {
                return(resultDelete);
            }

            return(Response.CreateSuccess("Cliente removido com sucesso!"));
        }
예제 #4
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            u.client_id = Convert.ToInt32(txtClient_id.Text);

            bool succes = dal.Delete(u);

            if (succes == true)
            {
                MessageBox.Show("Datele clientului au fost sterse cu succes.");
            }
            else
            {
                MessageBox.Show("Datele clientului NU au fost sterse.");
            }
            DataTable dt = dal.Select();

            dgvClient.DataSource = dt;
        }
예제 #5
0
 /// <summary>
 /// 删除
 /// </summary>
 /// <param name="id"></param>
 public void Delete(int id)
 {
     cd.Delete(id);
 }
예제 #6
0
        // Deleteing the client. -> only from the admin area.
        //Delete all the assoicated data.

        public static bool Delete(Client client)
        {
            return(ClientDAL.Delete(client.CLientId));
        }