コード例 #1
0
        public ActionResult Delete(Guid clientid)
        {
            ClientDAL objdal = new ClientDAL();
            int       i      = objdal.Delete(clientid);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
ファイル: Client.cs プロジェクト: zPepe/ptGym-UWP-MVVM
        public bool Delete()
        {
            bool res = false;

            res = ClientDAL.Delete(this);
            return(res);
        }
コード例 #3
0
ファイル: ClientBLL.cs プロジェクト: Brfranca/HotelSystem
        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));
        }