public ActionResult Delete(Guid clientid) { ClientDAL objdal = new ClientDAL(); int i = objdal.Delete(clientid); return(RedirectToAction("Index")); }
public bool Delete() { bool res = false; res = ClientDAL.Delete(this); return(res); }
public Response Delete(Client client) { Response resultDelete = _clienteDAL.Delete(client); if (!resultDelete.Success) { return(resultDelete); } return(Response.CreateSuccess("Cliente removido com sucesso!")); }
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; }
/// <summary> /// 删除 /// </summary> /// <param name="id"></param> public void Delete(int id) { cd.Delete(id); }
// Deleteing the client. -> only from the admin area. //Delete all the assoicated data. public static bool Delete(Client client) { return(ClientDAL.Delete(client.CLientId)); }