/// <summary> /// Permite borrar un cliente por Id /// </summary> /// <param name="id">Id de la categoría</param> /// <returns></returns> public async Task <bool> BorraAsync(int id) { if (await clienteDAO.BorraAsync(id, new List <IRegla>(), "El Cliente")) { return(true); } else { customError = clienteDAO.customError; return(false); } }
/// <summary> /// Permite borrar una categoría por Id /// </summary> /// <param name="id">Id de la categoría</param> /// <returns></returns> public async Task <bool> BorraAsync(int id) { if (await categoriaDAO.BorraAsync(id, new List <IRegla>(), "La categoría")) { return(true); } else { customError = categoriaDAO.customError; return(false); } }